<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input data-rule="required" class="form-control hidden" name="row[id]" type="text" value="{$row.id|htmlentities}">
    <input data-rule="required" class="form-control hidden" name="row[activity_id]" type="text" value="{$row.activity_id|htmlentities}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简介描述')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro" class="form-control " rows="5" name="row[intro]" cols="50" >{$row.intro|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="<?php echo number_format($row['price']/100,2);?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="number" value="{$row.number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门票售卖时间')}:</label>
        <div class="col-xs-12 col-sm-8">
        <span><input id="c-start_time" data-rule="required" class="form-control datetimepicker" style="width: 150px;" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time|date='Y-m-d H:i:s',###}">
        &nbsp;至&nbsp;<input id="c-end_time" data-rule="required" class="form-control datetimepicker"  style="width: 150px;" data-date-format="YYYY-MM-DD HH:mm:ss"    data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time|date='Y-m-d H:i:s',###}">
        </span>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>

        </div>
    </div>
</form>
